package com.exam.repository;

import com.exam.dataobject.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by v
 * Date:2019/1/7
 * Time:13:29
 */
public interface UserRepository extends JpaRepository<User, Integer> {

    User findByUserId(Integer userId);

    User findByUserName(String userName);

    User findByUserPhone(String userPhone);
}
